home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7092 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: connix.com!news
  2. From: Scott Hawley <shawley@connix.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help on assignment
  5. Date: Wed, 21 Feb 1996 13:54:50 -0800
  6. Organization: SHAWLEY SYSTEMS
  7. Message-ID: <312B94AA.5624@connix.com>
  8. References: <4gdmjm$1kr@cloner4.netcom.com>
  9. NNTP-Posting-Host: shawley.connix.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. I would do your home work but I will give a couple of hints.
  16.  
  17. > Write a function that normally takes one argument, the address of a
  18. > string, and prints that string once. However, if a second, type int
  19. > argument is provided and is greater than zero, the function prints the
  20. > string the number of times equal to the number of times indicated.
  21.  
  22. hint: int main(int argc, char **argv)
  23.  
  24. > Second one is
  25. > Write a function called zerosmaller that is passed to two int arguments
  26. > by reference and then sets the smaller of the two numbers to 0. Write a
  27.  
  28. hint: void set_smaller(int& val1, int& val2)
  29.